package com.leejxx.health.service;

import com.leejxx.health.entity.PageResult;
import com.leejxx.health.entity.QueryPageBean;
import com.leejxx.health.pojo.Menu;

import java.util.List;
import java.util.Map;

/**
 * @Author LeeJx
 * @ClassName MenuService
 * @Description TODO
 * @date 2021/1/11 11:27
 * @Version 1.0
 */
public interface MenuService {
    PageResult findByPage(QueryPageBean queryPageBean);

    List<Menu> findChildMenu();

    void addParentMenu(Menu menu, List<Integer> menuIds);

    void addChildMenu(Menu menu);

    Menu findById(Integer menuId);

    List<Integer> findChildIds(Integer parentId);

    List<Menu> findAllChildMenu();

    void editParentMenu(Menu menu, List<Integer> menuIds);

    void editChildMenu(Menu menu);

    void delete(Integer menuId);

    List<Map<String, Object>> getMenuList(String username);
}
